<{include file="scenter/weixin/addon/block/header.html"}>
<body id="scratch">
	<div class="container body" style="position:relative">
    	<div class="prev_get">
        	<div class="top"></div>
            <div class="mid">
                <notempty name="my_sn_list">
            	<div class="get_text">
                	<h6>已获得的优惠券</h6>
                    <p class="list">
                 <{foreach $my_sn_list as $sn}>
                SN码&nbsp;&nbsp;：<{$sn.sn}><br/>
                状 态&nbsp;&nbsp;：<{if $sn.is_use==1}>已使用<{else}>未使用<{/if}><br/>
                <{/foreach}>  
                <{if !empty($detail['stime']) && !empty($detail['ltime'])}>
                有效期：<{$detail.stime|format:'Y-m-d'}> 至 <{$detail.ltime|format:'Y-m-d'}>
                <{/if}>

                <{if !empty($detail['stime']) && empty($detail['ltime'])}>
                开始时间：<{$detail.stime|format:'Y-m-d'}>
                <{/if}>
                <{if empty($detail['stime']) && !empty($detail['ltime'])}>
                截止时间：<{$detail.ltime|format:'Y-m-d'}>
                <{/if}>
               
                <br/>
                  
                          	
                    </p>
                </div>
                </notempty>
                
                <div class="get_text">
                	<h6><{$detail.title}></h6>
                    <p>简介： <{$detail.intro}></p>
                </div>                
                
                <div class="get_text">
                	<h6>领取条件</h6>
                    <p class="list">
                        <{foreach $condition as $key => $vo}>
                        <span class="num"><{$key+1}></span><{$vo}> <br/>
                        <{/foreach}> 
                    </p>
                </div>
                <{if $error}>
                    <h3 class="get_error">
                        <{$error}>
                    </h3>
                <{else}>
            		<center><a href="<{link ctl='scenter/weixin/addon/coupon:sign' arg0=$detail.coupon_id}>"><img class="get_btn" src="%THEME%/scenter/weixin/addon/static/img/get_btn.jpg"/></a></center>
                <{/if}>
                
            </div>
            <div class="btm"></div>
        </div>
        
        <p class="copyright"><{$CONFIG.site.title}></p>
        </div>
    </div>
</body>
<script type="text/javascript">
var h=$(document).height();
$('.container').css("min-height",h);
</script>
</html>
